/*
 * @Description:包子生产消费的测试类
 * 
 * @Author: rendc
 * 
 * @Date: 2025-08-20 14:04:15
 * 
 * @LastEditors: rendc
 * 
 * @LastEditTime: 2025-08-20 14:30:11
 */
public class TestBum {

  public static void main(String[] args) {
    // 准一个共享的对象 作为一个锁
    Bum bum = new Bum();
    // 生产者的线程
    Thread t1 = new Producer("包子店老板", bum);
    // 消费者的线程
    Thread t2 = new Customer1("打工人小张", bum);
    t1.start();
    t2.start();

  }
}